import request from '@/utils/request'

// 查询采购到货详细报表列表
export function listPurchaseArriveDetailReport(query) {
  return request({
    url: '/purchaseReport/purchaseArriveDetailReport/list',
    method: 'get',
    params: query
  })
}

// 查询采购到货详细报表详细
export function getPurchaseArriveDetailReport(contractNo) {
  return request({
    url: '/purchaseReport/purchaseArriveDetailReport/' + contractNo,
    method: 'get'
  })
}

// 新增采购到货详细报表
export function addPurchaseArriveDetailReport(data) {
  return request({
    url: '/purchaseReport/purchaseArriveDetailReport',
    method: 'post',
    data: data
  })
}

// 修改采购到货详细报表
export function updatePurchaseArriveDetailReport(data) {
  return request({
    url: '/purchaseReport/purchaseArriveDetailReport',
    method: 'put',
    data: data
  })
}

// 删除采购到货详细报表
export function delPurchaseArriveDetailReport(contractNo) {
  return request({
    url: '/purchaseReport/purchaseArriveDetailReport/' + contractNo,
    method: 'delete'
  })
}

// 导出采购到货详细报表
export function exportPurchaseArriveDetailReport(query) {
  return request({
    url: '/purchaseReport/purchaseArriveDetailReport/export',
    method: 'get',
    params: query
  })
}